<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="/inc/js/ccorrect_btn.js"></script>
    <title>修改密码</title>
  </head>
  
   <script language="javascript" type="text/javascript" src="js/qy1.js"></script>
  <body onload="loaddw();selectedaddr();">
  <%Dlyh dlyh = (Dlyh )request.getSession().getAttribute("dlyh");
  if((dlyh.getZd().getTypename().endsWith("乡")||dlyh.getZd().getTypename().equals("工业园区")||dlyh.getZd().getTypename().endsWith("镇")||dlyh.getZd().getTypename().endsWith("办")||dlyh.getZd().getTypename().endsWith("办事处")||dlyh.getZd().getTypename().endsWith("局")||dlyh.getZd().getTypename().endsWith("社")||dlyh.getZd().getTypename().endsWith("集团")||dlyh.getZd().getTypename().endsWith("院")||dlyh.getZd().getTypename().equals("民航"))){
   %>
  <input type="hidden" value="<%=request.getSession().getAttribute("shiqyid") %>" id="shiqyid" name="shiqyid" />
  <%}%>
  <input type="hidden" value="<%=dlyh.getZd().getParentid() %>" id="qyid" name="qyid" />
  <input type="hidden" value="<%=dlyh.getZd().getTypename() %>:<%=dlyh.getZd().getId() %>:<%=dlyh.getZd().getParentid() %>" id="dlyhzd" name="dlyhzd" />
  <input type="hidden" value="<%=request.getAttribute("shi") %>" id="shiid" name="shiid" />
  <input type="hidden" value="<%=request.getAttribute("xian") %>" id="xianid" name="xianid" />
  <input type="hidden" value="<%=request.getAttribute("xiang") %>" id="xiangid" name="xiangid" />
  <input type="hidden" value="<%=request.getAttribute("cun")%>" id="cunid" name="cunid" />
  <input type="hidden" value="<%=request.getAttribute("xianzhi") %>" id="xianzhi" name="xianzhi" />
   <table class="TableTop" width="70%" align="center">
   <tbody><tr>
      <td class="left"></td>
      <td class="center subject">
       更改用户信息</td>
      <td class="right"></td>
   </tr>
</tbody></table>
<form method="post" action="dlyh.do?state=savaedit" name="form1" >
  <table class="TableBlock" width="70%" align="center">
   <tr class="Big">
    <input type="hidden" value="${dlyhinfo.zd.typename }:${dlyhinfo.zd.id }" name="dlyhzd" id="dlyhzd" />
    <input type="hidden"  value="${dlyhinfo.id }" name="yhid" id="yhid"/>
    <input type="hidden" value="${dlyhinfo.yhjb }" name="yhjb" id="yhjb">
    <input type="hidden" value="${dlyhinfo.zd.id }" name="bmbh1" id="bmbh1"/>
    <input type="hidden" value="${dlyhinfo.zd.typename }" name="bmbh2" id="bmbh2"/>
    <input type="hidden" value="${dlyhinfo.sfzz}" name="sfzz1" id="sfzz1"/>
    <input type="hidden" value="${dlyhinfo.zd.typename }:${dlyhinfo.zd.id }" id="typenameid" name="typenameid" />
	<td class="TableData" width="120">用户名：</td>
	<td class="TableData">
	<input type="text" name="dlyhmc" onchange="checkdlyhmc(this.value)" id="dlyhmc" value="${dlyhinfo.dlyhmc }">
	   <span name="dlyhmc_error" id="dlyhmc_error" style="color: red;display: none">用户名已存在</span>
	</td>
   </tr>
   <tr>
     <td class="TableData">用户密码：</td>
	<td class="TableData"><input type="password" name="dlyhmm" id="dlyhmm" value="${dlyhinfo.dlyhmm }"></td>
   </tr>
    <tr>
     <td class="TableData">真实姓名：</td>
	<td class="TableData"><input type="text" name="zsxm" id="zsxm" value="${dlyhinfo.zsxm }"></td>
   </tr>
    <tr>
     <td class="TableData">联系方式：</td>
	<td class="TableData"><input type="text" name="lxfs" id="lxfs" value="${dlyhinfo.lxfs }"></td>
   </tr>
   <%
     if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区"))
     {
    %>
   <tr>
	<td class="TableData" >部门：</td>
	<td class="TableData" >

		<!--  <input type="text" class="SmallInput" id="bm" value="${dlyhinfo.zd.zdqc }" name="bm" onclick="openwindow(1)" readonly="readonly"></input>
          <a href="javascript:openwindow(1);">选择</a>
        <input type="hidden" id ="bmbh" name="bmbh" value="${dlyhinfo.zd.id }" /> --> 
	 <select disabled="disabled" id="sheng" name="sheng" >
           <option value="河北省">河北省</option>
        </select>市
        <select id="shi" name="shi" onchange="shichange(this.value)">
           <option>请选择市</option>
           <%List xianlist=(List) request.getSession().getAttribute("shilist"); 
            for(int i=0;i<xianlist.size();i++){%>
           <option value="<%=((Zd)xianlist.get(i)).getId() %>"><%=((Zd)xianlist.get(i)).getTypename() %></option>
           <%} %>
        </select>市
        <select id="xian" name="xian" onchange="xianchange(this.value)">
           <option>请选择县</option>
        </select>县
       <!--  <select id="xian" name="xian" onchange="xianchange(this.value)">
           <option >请选择县</option>
        <%//List xianlist=(List) request.getSession().getAttribute("zdidlist"); 
          //for(int i=0;i<xianlist.size();i++){
        %>
           <option value="<%//=((Zd)xianlist.get(i)).getId() %>"><%//=((Zd)xianlist.get(i)).getTypename() %></option>
           <%//} %>
        </select>县 -->
        <select id="xiang"  name="xiang" onchange="xiangchange(this.value)" >
         <option >请选择乡</option>
        </select>乡
        <select id="cun"  name="cun" >
        <option >请选择村</option>
        </select>村
	</td>
   </tr>
      <tr>
	<td class="TableData" >是否专职：</td>
	<td class="TableData">
			<input type="radio" value="0" name="sfzz" <c:if test="${dlyhinfo.sfzz=='0'}"> checked="checked"</c:if> id="sfzz">是
			<input type="radio" value="1" name="sfzz" <c:if test="${dlyhinfo.sfzz=='1'}"> checked="checked"</c:if> id="sfzz">否
	</td>
   </tr>
   
   <%} %>
  <tr align="center" >
    <td class="TableControl" colspan="2" >
      <input type="submit" value="保存修改" class='BigButton'>&nbsp;&nbsp;&nbsp;
      <input type="button" value="返回" class="BigButton" onclick="javascript:history.go(-1)">
    </td>
  </tr>

 </table>
</form>
     <script type="text/javascript">
  function openwindow(str)
{
  window.open("doTree.jsp?sid="+str+"&pd=","部门","height=380,width=260,top=230,left=250,scrollbars=yes"); 
   //showModalDialog("doTree.jsp","部门","height=380,width=260,top=230,left=250,scrollbars=yes");
}
</script>
  </body>
</html>
